package util;

import java.util.HashMap;
import java.util.Map;

/**
 * @classname:WeatherResult
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/22 21:35
 * @version: 0.1
 * @since:1.8
 */
public class WeatherResult {

    public ServerResponseResult select(){
        Map<String,Object> data = new HashMap<>();
        data.put("湿度","75%");
        data.put("pm2.5",30);
        data.put("pm10",19);

        if(data.size()==0){
            return ServerResponseResult.fail();
        }
        return ServerResponseResult.success(data);
    }

}
